package com.hospital.workstation.domain.bo;

import com.hospital.common.core.validate.AddGroup;
import com.hospital.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.hospital.common.core.domain.BaseEntity;

/**
 * 药品信息业务对象 his_medicine_info
 *
 * @author whb
 * @date 2023-05-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HisMedicineInfoBo extends BaseEntity {

    /**
     * 药品信息id
     */
    @NotNull(message = "药品信息id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 药品代码
     */
    @NotBlank(message = "药品代码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String medicineCode;

    /**
     * 药品名称
     */
    @NotBlank(message = "药品名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String medicineName;

    /**
     * 药品简拼
     */
    @NotBlank(message = "药品简拼不能为空", groups = {AddGroup.class, EditGroup.class})
    private String medicineSpell;

    /**
     * 搜索值
     */
    private String searchValue;
}
